﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;


namespace EzyChoice
{
    [Serializable()]
    public class EzcWeightScore: ISerializable
    {
        public double Weight;
        public double Score;

        public EzcWeightScore()
        {

        }



        public EzcWeightScore(double weight, double score)
        {
            this.Weight = weight;
            this.Score = score;
        }

        protected EzcWeightScore(SerializationInfo info, StreamingContext context)
        {
            this.Weight = (double)info.GetValue("Weight", typeof(double));
            this.Score = (double)info.GetValue("Score", typeof(double));
        }

        public void GetObjectData(SerializationInfo info, StreamingContext ctxt)
        {
            info.AddValue("Weight", this.Weight);
            info.AddValue("Score", this.Score);
        }
    }
}
